package com.sxg.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sxg.entity.SxgGoodsCollectionEntity;
import com.sxg.vo.resp.CollectionRespVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品收藏
 *
 * @author 浪漫写尽歌谱 3298751420@qq.com
 * @since 1.0.0 2024-03-07
 */
@Mapper
public interface SxgGoodsCollectionDao extends BaseMapper<SxgGoodsCollectionEntity> {

    List<CollectionRespVo> getByUerIdList(@Param("userId") Long userId, @Param("time") String time, @Param("limit") Integer limit, @Param("page") Integer page);

    Integer getByUerIdListCount(@Param("userId") Long userId);

    CollectionRespVo getByUserId(@Param("userId") Long userId, @Param("goodsId")Long goodsId);
}